package newsSystem.news;

import java.util.Date;

public class NewsInfo {
    private int newsID;//报刊名称刊编号
    private String newsName;//报刊名称
    private String newsPublish;//报刊出版社
    private double mPrice;//报刊价格
    private String newsContent;//报刊简介
    private Date newsData;//报刊周期
    private String newsCNo;//报刊分类名称
//    private String userID;//用户账号
    private String newsDept;//部门名称
    private byte[] newsImage;//报刊图片
    // 构造方法
    public NewsInfo(int newsID, String newsName, String newsPublish, double mPrice, String newsContent, Date newsData, String newsCNo, byte[] newsImage,String newsDept) {
        this.newsID = newsID;
        this.newsName = newsName;
        this.newsPublish = newsPublish;
        this.mPrice = mPrice;
        this.newsContent = newsContent;
        this.newsData = newsData;
        this.newsCNo = newsCNo;
//        this.userID = userID;
        this.newsImage = newsImage;
        this.newsDept=newsDept;
    }

    // Getter and Setter methods for each field

    public int getNewsID() {
        return newsID;
    }

    public void setNewsID(int newsID) {
        this.newsID = newsID;
    }
    public String getNewsDept() {
        return newsDept;
    }

    public void setNewsDept(String newsDept) {
        this.newsDept = newsDept;
    }

    public String getNewsName() {
        return newsName;
    }

    public void setNewsName(String newsName) {
        this.newsName = newsName;
    }

    public String getNewsPublish() {
        return newsPublish;
    }

    public void setNewsPublish(String newsPublish) {
        this.newsPublish = newsPublish;
    }

    public double getMPrice() {
        return mPrice;
    }

    public void setMPrice(double mPrice) {
        this.mPrice = mPrice;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public Date getNewsData() {
        return newsData;
    }

    public void setNewsData(Date newsData) {
        this.newsData = newsData;
    }

    public String getNewsCNo() {
        return newsCNo;
    }

    public void setNewsCNo(String newsCNo) {
        this.newsCNo = newsCNo;
    }

//    public String getUserID() {
//        return userID;
//    }

//    public void setUserID(String userID) {
//        this.userID = userID;
//    }

    public byte[] getNewsImage() {
        return newsImage;
    }

    public void setNewsImage(byte[] newsImage) {
        this.newsImage = newsImage;
    }
}